home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9789 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: baan.nl!news
  3. From: avi@green.baan.nl (Avi Cohen Stuart)
  4. Subject: Re: Help !!!!! on 'strstr"
  5. Message-ID: <yqp68c9mcxl.fsf@green.baan.nl>
  6. Sender: avi@green.baan.nl
  7. In-Reply-To: kim hai's message of Wed, 13 Mar 1996 09:21:03 -0800
  8. Date: Wed, 13 Mar 1996 11:48:22 GMT
  9. X-Nntp-Posting-Host: green.baan.nl
  10. Reply-To: avi@baan.nl
  11. References: <314703FF.4045@msmail.st.stems.com>
  12. Organization: Baan Development BV
  13. X-Newsreader: Gnus v5.1
  14.  
  15. In article <314703FF.4045@msmail.st.stems.com> kim hai <Kim_Hai.Ng@msmail.st.stems.com> writes:
  16.  
  17.  
  18.    Problem :
  19.        I need to locate a string within another string, and the process 
  20.    must be case insensitive. As far as I know, strstr() only locates the 
  21.    exact match and is case sensitive.
  22.        Does anyone konw of any functions that could allow me to locate 
  23.    substrings and is case insensitive ?
  24.  
  25.    Is taking care of all the combinations ( = 8) in string1 the only 
  26.    solution ? I'm working on Unix platform.
  27.  
  28. Depending on what you really want, you could try to use lex and/or yacc
  29. to solve your problem. 
  30.  
  31. Avi.
  32.